package basicComp;

import java.awt.Image;

import javax.swing.Icon;
import javax.swing.ImageIcon;

public class ImageGet
{
	private static ImageGet ig = new ImageGet();
	public static ImageGet getImageGet()
	{
		return ig;
	}
	private ImageGet()
	{	}
	
	public String getPath()
	{
		return "newFlightChess/src/image/";
	}
	
	public Icon getPlaneIcon(int index)
	{
		return new ImageIcon(getPath()+(index+1)+"c.png");
	}
	public Icon getOverIcon()
	{
		return new ImageIcon(getPath()+"over.jpg");
	}
	public Image getSetNum()
	{
		return new ImageIcon(getPath()+"setNum.png").getImage();
	}
	public Image getBeginning()
	{
		return new ImageIcon(getPath()+"Beginning.png").getImage();
	}
	public Image getRule()
	{
		return new ImageIcon(getPath()+"rule.png").getImage();
	}
	public Image getChessBoard()
	{
		return new ImageIcon(getPath()+"chessBoard.jpg").getImage();
	}
	public Icon[] getDice()
	{
		Icon[] i = {new ImageIcon(getPath()+"1.jpg"),
				new ImageIcon(getPath()+"2.jpg"),
				new ImageIcon(getPath()+"3.jpg"),
				new ImageIcon(getPath()+"4.jpg"),
				new ImageIcon(getPath()+"5.jpg"),
				new ImageIcon(getPath()+"6.jpg"),};
		
		return i;
	}
}
